<h1>Listing borrow_books</h1>

<table>
  <tr>
    <th>User</th>
    <th>Book</th>
    <th>Borrow date</th>
    <th>Return date</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @borrow_books.each do |borrow_book| %>
  <tr>
    <td><%= borrow_book.user_id %></td>
    <td><%= borrow_book.book_id %></td>
    <td><%= borrow_book.borrow_date %></td>
    <td><%= borrow_book.return_date %></td>
    <td><%= link_to 'Show', borrow_book %></td>
    <td><%= link_to 'Edit', edit_borrow_book_path(borrow_book) %></td>
    <td><%= link_to 'Destroy', borrow_book, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Borrow book', new_borrow_book_path %>
